package com.lh.createData.service;

import com.lh.createData.model.InPutParam.ProjAvgInParam;
import com.lh.createData.model.InPutParam.ProjAvgReportInParam;
import com.lh.createData.model.ProjAvgReportModel;
import com.lh.createData.myenum.TotalTypeEnum;

import java.util.List;

/**
 * @author ：梁昊，后端工程师：梁昊
 * @create 2021-07-20 19:07
 * @function
 * @editLog
 */
public interface ProjAvgService {
    /**
     * 根据ProjCode与众多条件，删除加权平均值记录
     *
     * @param projAvgInParam com.lh.createData.model.InPutParam.ProjAvgInParam
     * @return 影响条数
     */
    int deleteProjAvgByMult(ProjAvgInParam projAvgInParam, TotalTypeEnum totalTypeEnum);
    /**
     * 增加项目加权平均值
     *
     * @param projAvgInParam com.lh.createData.model.InPutParam.ProjAvgInParam
     * @return 影响条数
     */
    int insertProjAvg(ProjAvgInParam projAvgInParam, TotalTypeEnum totalTypeEnum);

    /**
     * 按月、季度、半年、年统计项目加权平均值
     *
     * @param projAvgReportInParam com.lh.createData.model.InPutParam.ProjAvgReportInParam
     * @return 影响条数
     */
    List<ProjAvgReportModel> selectProjAvgByProjectAndTime(ProjAvgReportInParam projAvgReportInParam);

}